package com.example.grpcserver.entity;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import org.springframework.context.annotation.Primary;

/**
 * Create on: 2020/8/18.
 *
 * @author hongwei.zhang
 */
@Entity
@Table(name = "def_account")
@Data
public class AccountEntity {
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  @Column(name = "c_id")
  private Long id;

  @Column(name = "c_email", nullable = false)
  private String email;

  @Column(name = "c_balance", nullable = false)
  private double balance;

}
